package com.hoshiicloud.user.entity.store;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.time.LocalDateTime;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 平台店铺
 * </p>
 *2019-05-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("店铺实体")
public class PlatStore extends Model<PlatStore> {
    private Long id;

    @ApiModelProperty("平台ID")
    private Long platId;

    @ApiModelProperty("店铺编号")
    private String storeCode;

    @ApiModelProperty("店铺经营性质 0-总店 1-分店")
    private String operationNature;

    @ApiModelProperty("上级ID")
    private Long parentId;

    @ApiModelProperty("自定义店铺编号")
    private String customCode;

    @ApiModelProperty("会员ID")
    private Long memberId;

    @ApiModelProperty("经营主体 1-公司 2-个人")
    private Integer businessEntity;

    @ApiModelProperty("店铺图片")
    private String images;

    @ApiModelProperty("门脸图")
    private String faceImages;

    @ApiModelProperty("店铺名称")
    private String storeName;

    @ApiModelProperty("店铺英文名称")
    private String storeEname;

    @ApiModelProperty("是否平台本身")
    private Integer platform;

    @ApiModelProperty("1.B2C(国内) 2.B2C（国外）3.C2C 4.O2O")
    private Integer type;

    @ApiModelProperty("店招图片")
    private String banner;

    @ApiModelProperty("店铺介绍")
    private String introductions;

    @ApiModelProperty("负责人")
    private String charge;

    @ApiModelProperty("负责人电话")
    private String chargeTelphone;

    @ApiModelProperty("微信号")
    private String chargeWeixin;

    @ApiModelProperty("邮箱")
    private String chargeEmail;

    @ApiModelProperty("法人姓名")
    private String corporationName;

    @ApiModelProperty("法人住址")
    private String corporationAddress;

    @ApiModelProperty("签发机关")
    private String corporationIssuedby;

    @ApiModelProperty("法人性别")
    private String corporationSex;

    @ApiModelProperty("籍贯")
    private String corporationBirthplace;

    @ApiModelProperty("出生日期")
    private LocalDateTime corporationBirthday;

    @ApiModelProperty("账户类型 1-企业账户 2-个人账户")
    private Integer accountType;

    @ApiModelProperty("户名（开户名称）")
    private String accountName;

    @ApiModelProperty("身份证号码")
    private String idCard;

    @ApiModelProperty("对公帐号")
    private String bankNumber;

    @ApiModelProperty("银行名称")
    private String bankName;

    @ApiModelProperty("所在支行")
    private String bankAddress;

    @ApiModelProperty("银行预留手机")
    private String bankMobile;

    @ApiModelProperty("税务登记号")
    private String taxation;

    @ApiModelProperty("开票号")
    @TableField("invoice_number")
    private String piaohao;

    @ApiModelProperty("电话号码")
    private String telephone;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("传真")
    private String fax;

    @ApiModelProperty("主页")
    private String home;

    @ApiModelProperty("邮件")
    private String email;

    @ApiModelProperty("公司地址，线下门店地址")
    private String address;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("修改时间")
    private LocalDateTime modifiedTime;

    @ApiModelProperty("修改人")
    private String modifiedBy;

    @ApiModelProperty("发货地址")
    private String goodsAddress;

    @ApiModelProperty("仓库地址")
    private String whouseAddress;

    @ApiModelProperty("结算方式（结算方式表）")
    private Long paymentId;

    @ApiModelProperty("是否删除")
    private Integer deleted;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("客服电话")
    private String servicePhone;

    @ApiModelProperty("经营领域")
    private String business;

    @ApiModelProperty("执照编号")
    private String licenseNumber;

    @ApiModelProperty("执照附件")
    private String licenseattach;

    @ApiModelProperty("营业开始时间")
    private Time openingStart;

    @ApiModelProperty("营业结束时间")
    private Time openingEnd;

    @ApiModelProperty("买家收货方式 0-自提 1-配送")
    private Integer deliveryMethod;

    @ApiModelProperty("最低配送金额")
    private BigDecimal shippingAmount;

    @ApiModelProperty("配送距离（米）")
    private Long shippingDistance;

    @ApiModelProperty("是否开放供应商系统 0-未开放 1-开放")
    private Integer openVendorSystem;

    @ApiModelProperty("供应商后台地址")
    private String vendorSystemUrl;

    @ApiModelProperty("审批")
    private String approved;

    @ApiModelProperty("审批人")
    private String approvedBy;

    @ApiModelProperty("审批时间")
    private String approvedTime;

    @ApiModelProperty("是否分销商 0-否 1-是")
    private Integer isDistributor;

    @ApiModelProperty("账户可用余额")
    private BigDecimal availableBalance;

    @ApiModelProperty("账户总额")
    private BigDecimal accountBalance;

    @ApiModelProperty("冻结金额")
    private BigDecimal freezingAmount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
